<?PHP
$target_path = $target_path.basename( $_FILES[ 'Filedata' ][ 'name' ] ); 

if ( move_uploaded_file( $_FILES[ 'Filedata' ][ 'tmp_name' ], $target_path ) ) 
{
    	
     echo "dir_path".$target_path;
} 
else
{
     echo $target_path;
}
?>
